<?php
	namespace Admin\Model;
	use Think\Model;
	class NewsModel extends Model{
		protected $_validate = array(
			array('yjl_title','require','标题不能为空!',1),
			array('yjl_content','require','新闻内容不能为空!',1)
		);
		protected $_auto = array(
			array('ntime','getdate',self::MODEL_INSERT,'callback')
		);
		function getdate(){
			return date('Y-m-d');
		}
	}
?>


